package com.woniuxy.exception.foodTypeException;

public enum FoodTypeExceptionCode {


    FOOD_TYPE_EXIST(8001,"添加失败，该类型已存在"),
    FOOD_TYPE_NOT_EXIST(8002,"类型不存在"),
    FOOD_TYPE_STATE_ERROR(8003,"父类型状态异常"),
    PARENT_TYPE_HAS_CHILD(8004,"父类型下面有菜品");



    Integer code;
    String message;

    FoodTypeExceptionCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getMessage() {
        return message;
    }

    public Integer getCode() {
        return code;
    }
}
